/* This file is convert from HTML by tools/convert.sh */
const char *g_index_html=
"<!DOCTYPE html>\r\n"
"<html>\r\n"
"    <head>\r\n"
"        <meta charset=\"utf-8\">\r\n"
"        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n"
"        <title>TinyML Board</title>\r\n"
"        <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT\" crossorigin=\"anonymous\">\r\n"
"        <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js\" integrity=\"sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8\" crossorigin=\"anonymous\"></script>\r\n"
"        <script type = \"text/javascript\">\r\n"
"          function WebSocketSendFile() {\r\n"
"              var firmware = document.getElementById(\"firmware\").files[0];\r\n"
"              if (\"WebSocket\" in window) {\r\n"
"                let url=\"ws://\" + location.host;\r\n"
"                var ws = new WebSocket(url);\r\n"
"                ws.onopen = function()\r\n"
"                {\r\n"
"                  ws.binaryType = \"arraybuffer\";\r\n"
"                  var reader = new FileReader();\r\n"
"                  var rawData = new ArrayBuffer();\r\n"
"                  reader.loadend = function() {\r\n"
"                  }\r\n"
"                  reader.onload = function(e)\r\n"
"                  {\r\n"
"                        rawData = e.target.result;\r\n"
"                        ws.send(rawData);\r\n"
"                        alert(\"the Firmware has been transferred.\")\r\n"
"                  }\r\n"
"                  reader.readAsArrayBuffer(firmware);\r\n"
"                };\r\n"
"                ws.onmessage = function (evt) {\r\n"
"                   var received_msg = evt.data;\r\n"
"                   alert(\"Message is received...\");\r\n"
"                };\r\n"
"                ws.onclose = function() {\r\n"
"                   alert(\"Wesocket is closed...\");\r\n"
"                };\r\n"
"             } else {\r\n"
"                alert(\"WebSocket NOT supported by your Browser!\");\r\n"
"             }\r\n"
"          }\r\n"
"       </script>\r\n"
"    </head>\r\n"
"    <body class=\"bg-light\">\r\n"
"        <header class=\"bd-header bg-dark py-3 d-flex align-items-stretch border-bottom border-dark\">\r\n"
"            <div class=\"container-fluid d-flex align-items-center\">\r\n"
"              <h1 class=\"d-flex align-items-center fs-4 text-white mb-0\"> TinyML Board Designed By Avnet </h1>\r\n"
"            </div>\r\n"
"        </header>\r\n"
"        <br> <br> <br>\r\n"
"        <main role=\"main\" class=\"container\">\r\n"
"                    <br>\r\n"
"                    <div class=\"mb-3\">\r\n"
"                      <label class=\"form-label\" for=\"customFile\">Choose The Firmware Images:</label>\r\n"
"                      <input type=\"file\" class=\"form-control\" id=\"firmware\">\r\n"
"                    </div>\r\n"
"                    <br>\r\n"
"                    <button type=\"submit\" class=\"btn btn-primary\" onclick=\"WebSocketSendFile();\">Submit</button>\r\n"
"        </main>\r\n"
"   </body>\r\n"
"</html>\r\n"
;
